<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="dao.*"  %>
<%@page import="entity.*"  %>
<%@page import="java.util.List"  %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>学生信息管理修改页面</title>
<link rel="stylesheet" type="text/css" href="naive.css" />
</head>
<body>
<table>
	<tr><td>img</td><td>id</td><td>pId</td><td>name</td><td>sex</td><td>birthdate</td><td colspan="2">操作</td></tr>
	<%
		List<JavaBean> list=StudentDao.readList();
			 for(JavaBean l:list){
		out.println("<tr><td><a href='img.jsp?cid="+l.getId()+"&action=img'> 显示</a></td><td>"+l.getId()+"</td><td>"+l.getpId()+"</td><td>"+l.getName()
					+"</td><td>"+l.getSex()+"</td><td>"+l.getBirthdate()+"</td><td>"+
					"<a href='Update1.jsp?cid="+String.valueOf(l.getId())+"&action=upd'> 修改 </td></tr>"
					);
		
			}
	%>
</table>
</body>
</html>